/* eslint-disable */
import {
	hiprint
} from 'vue-plugin-hiprint'

// 自定义设计元素1
export const aProvider = function(ops) {
	var addElementTypes = function(context) {
		context.removePrintElementTypes("eProviderModule");
		context.addPrintElementTypes(
			"eProviderModule",
			[
				new hiprint.PrintElementTypeGroup("模板", [
					{
						tid: 'eProviderModule.unit',
						title: '我方单位',
						data: '我方单位',
						type: 'text',
						options: {
							field: 'unit',
							height: 16,
							fontSize: 6.75,
							fontWeight: "700",
							textAlign: "center",
							hideTitle: false
						}
					},
					{
						tid: 'eProviderModule.numbers',
						title: '单号',
						data: '单号',
						type: 'text',
						options: {
							field: 'numbers',
							height: 16,
							fontSize: 6.75,
							fontWeight: "700",
							textAlign: "left",
							hideTitle: false
						}
					},
					{
						tid: 'eProviderModule.contactUnit',
						title: '往来单位',
						data: '往来单位',
						type: 'text',
						options: {
							field: 'contactUnit',
							// hideTitle: "1",
							height: 16,
							fontSize: 6.75,
							fontWeight: "700",
							textAlign: "left",
							textContentVerticalAlign: "middle"
						}
					},
					{
						tid: 'eProviderModule.invoiceCode',
						title: '发票代码',
						data: '发票代码',
						type: 'text',
						options: {
							field: 'invoiceCode',
							height: 16,
							fontSize: 6.75,
							fontWeight: "700",
							textAlign: "left",
							textContentVerticalAlign: "middle"
						}
					},
					{
						tid: 'eProviderModule.invoiceType',
						title: '发票类型',
						data: '发票类型',
						type: 'text',
						options: {
							field: 'invoiceType',
							height: 16,
							fontSize: 6.75,
							fontWeight: "700",
							textAlign: "center",
							textContentVerticalAlign: "middle",

						}
					},
					{
						tid: 'eProviderModule.invoiceDate',
						title: '开票日期',
						data: '开票日期',
						type: 'text',
						options: {
							field: 'invoiceDate',
							height: 16,
							fontSize: 6.75,
							fontWeight: "700",
							textAlign: "left",
							textContentVerticalAlign: "middle",

						}
					},
					{
						tid: 'eProviderModule.total',
						title: '开票总金额',
						data: '开票总金额',
						type: 'text',
						options: {
							field: 'total',
							height: 16,
							fontSize: 6.75,
							fontWeight: "700",
							textAlign: "center",
							
						}
					},
					{
						tid: 'eProviderModule.invoiceNumber',
						title: '发票号码',
						data: '发票号码',
						type: 'text',
						options: {
							field: 'invoiceNumber',
							height: 16,
							fontSize: 6.75,
							fontWeight: "700",
							textAlign: "center",
							
						}
					},
					
					
					// {tid: 'eProviderModule.logo', title: 'Logo', data: '', type: 'image'},
				]),
				new hiprint.PrintElementTypeGroup("拖拽列表", [{
						tid: 'eProviderModule.text',
						title: '文本',
						data: '李四',
						type: 'text',
						options: {
							field: 'text',
							height: 16,
							fontSize: 6.75,
							fontWeight: "700",
							textAlign: "left",
							textContentVerticalAlign: "middle"
						}
					},
					{
						tid: 'eProviderModule.longText',
						title: '长文',
						data: '处处充满创造性',
						type: 'text',
						options: {
							field: 'longText',
							height: 16,
							fontSize: 6.75,
							fontWeight: "700",
							textAlign: "left",
							textContentVerticalAlign: "middle"
						}
					},

				]),

				new hiprint.PrintElementTypeGroup("辅助", [{
						tid: 'eProviderModule.hline',
						title: '横线',
						type: 'hline'
					},
					{
						tid: 'eProviderModule.vline',
						title: '竖线',
						type: 'vline'
					},
					{
						tid: 'eProviderModule.rect',
						title: '矩形',
						type: 'rect'
					},
					{
						tid: 'eProviderModule.oval',
						title: '椭圆',
						type: 'oval'
					}
				])
			]
		);
	};
	return {
		addElementTypes: addElementTypes
	};
};



export default 
[{
	value: 'eProviderModule',
	f: aProvider()
}]

